<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>货品管理</title>
    <!-- bootstrap和hdjs引入 -->
    <link rel="stylesheet" href="http://127.0.01/jmshop/Static/bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript" src="http://127.0.01/jmshop/Static/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="http://127.0.01/jmshop/Static/hdjs/hdjs.min.js"></script>
    <link rel="stylesheet" href="http://127.0.01/jmshop/Static/hdjs/hdjs.css" />
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list strr">
        <thead>
        <tr>
            <td width="30"></td>
            <td>货品id</td>
            <td>颜色</td>
            <td>尺码</td>
            <td>库存</td>
            <td>货号</td>
            <td width="200">操作</td>
        </tr>
        </thead>
       
        <form action="<?php echo U('Admin/ShopGoodsList/edit');?>" method="post" class="goodslist">
        <tbody id="dd">
            <td width="30"></td>
            <td>添加货品</td>
            <td>
                <select name="spec[]" id="color" style="height:30px;width:100px">
                    <option value="0">-请选择-</option>
                    <?php foreach ($color as $k=>$v){?>
                        <option value="<?php echo $v['gtid'];?>"     <?php if($goodsData[combine][0]){ ?>selected<?php } ?>><?php echo $v['gtvalue'];?></option>
                    <?php }?>
                </select>
            </td>
            <td>
                <select name="spec[]" id="size" style="height:30px;width:100px">
                    <option value="0">-请选择-</option>
                    <?php foreach ($size as $k=>$v){?>
                        <option value="<?php echo $v['gtid'];?>"     <?php if($goodsData[combine][1]){ ?>selected<?php } ?>><?php echo $v['gtvalue'];?></option>
                    <?php }?>
                </select>
            </td>
            <td>
                <input type="text" name="inventery" style="height:30px;width:100px" value="<?php echo $goodsData['inventery'];?>" />
            </td>
            <td>
                <input type="text" name="number" style="height:30px;width:100px" value="<?php echo $goodsData['number'];?>"/>
            </td>
            <td>
            <input type="hidden" value="<?php echo $hd['get']['glid'];?>" id="goodsGid" name="glid"/>
            <input type="submit" value="修改" class="hd-btn hd-btn-danger hd-btn-sm" />
            </td>
        </tbody>
        </form>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


